﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.kindergarten {
    import flash.events.*;
    import net.wooga.pets.models.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class InitKindergartenTeaserCommand extends Command {

		[Inject]
        public var userModel:UserModel;
		[Inject]
        public var worldModel:WorldModel;

        override public function execute():void{
            var _local1:Boolean = this.worldModel.hasAreaType(GameConstants.ROOMS_KINDERGARTEN);
            if (((((!(this.userModel.isVisitFriendsMode())) && (!(_local1)))) && ((this.userModel.level >= GameConstants.MIN_LEVEL_KINDERGARTEN_TEASER)))){
                dispatch(new Event(EventConstants.SHOW_KINDERGARTEN_TEASER));
            };
        }

    }
}//package net.wooga.pets.controllers.kindergarten 
